<?php
declare (strict_types = 1);
namespace app\content\model\content;

use app\common\model\BaseModel;
use think\model\concern\SoftDelete;

/**
 * 定义机构数据模型
 */
class Agreement extends BaseModel
{
    use SoftDelete;
    /**
     * 表名
     * @var string
     */
    protected $name = 'content_agreement';

    protected $hidden = ['delete_time'];
    /**
     * 设置自动写入时间
     * @var boolean
     */
    protected $autoWriteTimestamp = true;

    /**
     * 定义字段类型
     * @var array
     */
    protected $type = [
        'id'          => 'integer',
        'key'         => 'string',
        'title'       => 'string',
        'content'     => 'string',
        'remark'      => 'string',
        'is_system'   => 'integer',
        'create_time' => 'integer',
        'update_time' => 'integer',
    ];

    /**
     * 定义表主键
     * @var string
     */
    protected $pk = 'id';

}
